        <div class="dashboardWrapper">
            <header>
            	<table>
                	<tbody>
                    	<tr>
                        	<td class="logo">SUMMON</td>
                        	<td class="menu">
                            	<ul>
                                	<li>
                                    	<ul>
                                        	<li><a href="<?=base_url()?>dashboard/messages"><i class="icon-envelope"></i> Messages<span class="newMsgCount"></span></a></li>
                                        	<li><a href="<?=base_url()?>dashboard/restaurants"><i class="icon-glass"></i> Restaurants</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </td>
                        	<td class="user">
                                <div class="menuToggleBtn">
                                	<button class="btn" id="toggleMenu">
                                		<i class="icon-align-justify"></i>
                                    </button>
                                </div>
                                <div class="navbar navbar-static">
                                    <ul class="nav" role="navigation">
                                        <li class="dropdown">
                                            <ul class="nav pull-right">
                                                <li id="fat-menu" class="btn-group dropdown">
                                                    <button class="btn dropdown-toggle leftBtn" data-toggle="dropdown" role="button">
                                                        <span class="nameShow">
                                                        <?php
                                                            if($fullname!='')
                                                            {
                                                                echo '<i class="icon-user"></i> '.$fullname;
                                                            }
                                                            else
                                                            {
                                                                echo 'Guest!';	
                                                            }
                                                        ?>
                                                        </span>
                                                        <span class="nameHide">
                                                            <i class="icon-user"></i>
                                                        </span>

                                                    </button>
                                                    <button class="btn dropdown-toggle" data-toggle="dropdown">
                                                        <i class="icon-cog"></i>
                                                    </button>
                                                    <ul class="dropdown-menu" aria-labelledby="drop3" role="menu">
                                                        <li role="presentation">
                                                        	<span class="hiddenName"><?=$fullname?></span>
                                                            <p><?=$userType?></p>
                                                        </li>
                                                        <li role="presentation">
                                                            <a href="<?=base_url()?>dashboard/account_settings/<?=$myID?>" tabindex="-1" role="menuitem"><i class="icon-edit"></i> Account Settings</a>
                                                        </li>
                                                        <li class="divider" role="presentation"></li>
                                                        <li role="presentation">
                                                            <a href="<?=base_url()?>dashboard/logout" tabindex="-1" role="menuitem"><i class="icon-off"></i> Log Out</a>
                                                        </li>
                                                    </ul>
                                                </li>
                                            </ul>
                                        </li>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </header>
            <section>
                <div class="container-fluid">
                    <div class="row-fluid">
                        <div class="span2 leftWrapper" id="menuToToggle">
                        	<h2><i class="icon-tasks"></i> Menu</h2>
                        	<div class="hiddenMenu">
                            	<ul>
                                	<li>
                                    	<ul>
                                        	<li><a href="<?=base_url()?>dashboard/messages"><i class="icon-envelope"></i> Messages<span class="newMsgCount"></span></a></li>
                                        	<li><a href="<?=base_url()?>dashboard/restaurants"><i class="icon-glass"></i> Restaurants</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </div>
                            <div class="defaultMenu">
                            	<ul>
                                	<li>
                                    	<ul>
											<li><a href="<?=base_url()?>dashboard/reserved_lists"><i class="icon-folder-close"></i> Reserved Lists</a></li>
                                            <li><a href="<?=base_url()?>dashboard/list_users"><i class="icon-th-list"></i> Lists of Users</a></li>
                                        	<li><a href="<?=base_url()?>dashboard/accounts_analysis"><i class="icon-th"></i> General Reports</a></li>
                                        	<li><a href="<?=base_url()?>dashboard/account_summary"><i class="icon-list-alt"></i> Summary of New Accounts</a></li>
                                            <li><a href="<?=base_url()?>dashboard/about_us"><i class="icon-info-sign"></i> About the company</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="span10 rightWrapper">
                        	<h2><i class="icon-eye-open"></i> Account &amp; Analysis System</h2>
                        	<!--Body content-->
                            <ul class="nav nav-tabs">
                                <li class="active">
                                	<a href="<?=base_url()?>dashboard/restaurants"><i class="icon-user "></i> Lists</a>
                                </li>
                            </ul>
                            <div class="contentHolder">
							<?php
                         	echo '<table class="table table-bordered table-striped">';
												echo '<thead>';
													echo '<tr>';
													echo '<th colspan="6" class="dl-header">';
														echo 'Main Branches';
													echo '</th>';
													echo '</tr>';
												echo '</thead>';
												echo '<tbody>';
													echo '<tr class="trHeaderHolder">';
														echo '<td><i class="icon-picture"></i> <strong>Thumbnail</strong></td>';
														echo '<td><i class="icon-glass"></i> <strong>Restaurant Name</strong></td>';
														echo '<td><i class="icon-user"></i> <strong>Contact No.</strong></td>';
														echo '<td><i class="icon-map-marker"></i> <strong>Location</strong></td>';
														echo '<td><i class="icon-user"></i> <strong>Owner/Manager</strong></td>';
														echo '<td><i class="icon-tasks"></i> <strong>Controls</strong></td>';
													echo '</tr>';
													foreach($listMainBranch as $key=>$val)
													{
													$str = $val['strLatLng'];
												$latlang =	(explode(',',$str,2));
														echo '<tr id="item_'.$val['intRestoID'].'">';
															echo '<td style="width:8%">';
																echo '<div class="imgHolder">';
																	echo '<img width="80px" src="'.base_url().'assets/uploaded/thumbnails/'.$val['strRestoThumb'].'" />';
																echo '</div>';
															echo '</td>';
															echo '<td>';
																echo $val['strRestoName'];
															echo '</td>';
															echo '<td>';
																	echo $val['strRestoLandline'];
															echo '</td>';
															echo '<td style="width:20%">';
																if($val['strRestoAddress']!='')
																{
																	$strRestoAddress = $val['strRestoAddress'].', ';
																}
																else
																{
																	$strRestoAddress = '';
																}
																if($val['strRestoCity']!='')
																{
																	$strRestoCity = $val['strRestoCity'].', ';
																}
																else
																{
																	$strRestoCity = '';
																}
																if($val['strRestoCountry']!='')
																{
																	$strRestoCountry = get_country($val['strRestoCountry']);
																}
																else
																{
																	$strRestoCountry = '';
																}
																echo $strRestoAddress.$strRestoCity.$strRestoCountry;
															echo '</td>';
															echo '<td style="width:20%">';
																echo $val['strFirstName'].' '.$val['strMiddleName'].' '.$val['strLastName'];
															echo '</td>';
															echo '<td style="width:11%">';
																echo '<div class="btn-group controlHolder">';
																	echo '<a href="'.base_url().'dashboard/view_branches_account/'.$val['intRestoID'].'" data-lng ="'.$latlang[1].'"  data-lat = "'.$latlang[0].'"data-id="'.$val['intRestoID'].'" data-title="'.$val['strRestoName'].'" data-img="'.$val['strRestoThumb'].'" data-assets="'.$val['strRestoAssets'].'" data-date="'.$val['dateRestoCreated'].'" data-location="'.$val['strRestoCity'].'" data-description="'.strip_tags($val['strRestoDescr']).'" class="btn btn-mini viewresto" ><i class="icon-eye-open"></i> <span>View</span></a>';
																echo '</div>';
															echo '</td>';
														echo '</tr>';
													}
														echo '<tr>';
															echo '<td colspan="5">';
																echo $pageLinks;
															echo '</td>';
														echo '</tr>';
												echo '</tbody>';
											echo '</table>';	
								?>
							</div>
                        </div>
                    </div>
                </div>
            </section>
            <footer>

            </footer>
        </div>
